package com.qijian.maindata.domain.bpo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@ApiModel("工单管理")
@Data
public class SDInventoryUpdateBpo {

    @ApiModelProperty(value = "唯一id")
    private Long id;

    @ApiModelProperty(value = "工序id")
    private Long fmProcessId;

    @ApiModelProperty(value = "工序顺序")
    private Integer fmProcessSort;

    @ApiModelProperty(value = "工序名称")
    private String processName;

    @ApiModelProperty(value = "库存量")
    private BigDecimal qty;

    @ApiModelProperty(value = "库存状态")
    private char status;

    @ApiModelProperty(value = "物料id")
    private Long itemId;

    @ApiModelProperty(value = "物料编码")
    private String itemCode;

    @ApiModelProperty(value = "物料名称")
    private String itemName;

    @ApiModelProperty(value = "出库量")
    private BigDecimal outQty;

    @ApiModelProperty(value = "入库量")
    private BigDecimal intoQty;

    @ApiModelProperty(value = "销售订单号")
    private String number;

    @ApiModelProperty(value = "生产订单号")
    private String orderNo;

    @ApiModelProperty(value = "流转卡号")
    private String circulationNo;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty("库存表id")
    private Long fmStoreId;

    @ApiModelProperty("库存名称")
    private String storeName;

    @ApiModelProperty(value = "仓位名称")
    private String storeLocationName;

    @ApiModelProperty("物料编码")
    private String itemSpec;

    private Boolean isOut;

    @ApiModelProperty("净重(kg)")
    private BigDecimal finishQtyKg;

    @ApiModelProperty("毛重")
    private BigDecimal roughWeight;

    @ApiModelProperty("桶号")
    private String barrelNumber;
}
